package dom4j;

import org.dom4j.Document;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;

public class Test {

	public static void main(String[] args) throws Exception {
		
		String result = "<?xml version=\"1.0\" encoding=\"GB2312\"?><INFO><CODE>0</CODE><MSG>查询成功</MSG><Account_ID>lxcc</Account_ID><PAccount><TotalAmount></TotalAmount><FreezeAmount></FreezeAmount><LeftAmount>0</LeftAmount></PAccount><CAccount><TotalAmount>0</TotalAmount><FreezeAmount>0</FreezeAmount><LeftAmount>0.00</LeftAmount></CAccount><DAccount><TotalAmount>0</TotalAmount><FreezeAmount>0</FreezeAmount><LeftAmount>0.00</LeftAmount></DAccount></INFO>";
		Document doc = DocumentHelper.parseText(result);
		Element root = doc.getRootElement();
		Element d = root.element("DAccount");
		
		System.out.println(d);
	}
}
